<style>
    #reportSurveyAssign-edit .layui-input-block {
        margin-left: 125px;
    }

    #reportSurveyAssign-edit .layui-form-label {
        width: 92px;
    }

    #reportSurveyAssign-edit .grey-input {
        background-color: #dfa7a73b;
    }

    #reportSurveyAssign-edit .layui-input-block-detail {
        margin-top: 8px;
    }
</style>
<div class="febs-container" id="reportSurveyAssign-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="reportSurveyAssign-edit-form">
            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary">基本信息</blockquote>
                <div class="layui-card-body">
                    <div class="layui-field-box">
                        <div class="layui-form-item febs-hide">
                            <label class="layui-form-label febs-form-item-require">：报告id</label>
                            <div class="layui-input-block">
                                <input type="text" name="reportId" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-row">
                                <div class="layui-col-xs12">
                                    <label class="layui-form-label layui-form-label-detail ">事故标题：</label>
                                    <div class="layui-input-block layui-input-block-detail"
                                         th:text="${accidentReport.accidentTitle}">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-row">

                                <div class="layui-col-xs6">
                                    <label class="layui-form-label layui-form-label-detail ">事故类型：</label>
                                    <div class="layui-input-block layui-input-block-detail" name="accidentType">
                                    </div>
                                </div>
                                <div class="layui-col-xs6">
                                    <label class="layui-form-label layui-form-label-detail ">发生时间：</label>
                                    <div class="layui-input-block layui-input-block-detail"
                                         th:text="${accidentReport.accidentDate}">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-row">
                                <div class="layui-col-xs6">
                                    <label class="layui-form-label layui-form-label-detail ">发生地点：</label>
                                    <div class="layui-input-block layui-input-block-detail"
                                         th:text="${accidentReport.accidentPlace}">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary">调查组成员</blockquote>
                <div class="layui-card-body" id="company_box">
                    <div class="layui-panel layui-panel-company" id="panel_company0">
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <div class="layui-row">
<!--                                    <div class="layui-col-xs12">-->
<!--                                        <div class="layui-input-block">-->
<!--                                            <button type="button" class="layui-btn layui-btn-sm"-->
<!--                                                    id="addBtn">-->
<!--                                                <span class="layui-icon layui-icon-add-1"></span>调查小组-->
<!--                                            </button>-->
<!--                                        </div>-->
<!--                                    </div>-->
                                    <div class="layui-col-xs12">
                                        <label class="layui-form-label">调查人员：</label>
                                        <div class="layui-input-block" style="margin-top: 5px">
                                            <button type="button" class="layui-btn layui-btn-sm"
                                                    id="addBtn">
                                                <span class="layui-icon layui-icon-add-1"></span>调查小组
                                            </button>
                                            <table lay-filter="groupUserTable" id="groupUserTable"
                                                   lay-data="{id: 'groupUserTable'}" style="margin-top: 5px"></table>
                                        </div>
                                    </div>
                                </div>
                            </div>
<!--                            <div class="layui-form-item">-->
<!--                                <div class="layui-row">-->
<!--                                    <div class="layui-col-xs12">-->
<!--                                        <div class="layui-input-block">-->
<!--                                            <button type="button" class="layui-btn layui-btn-sm"-->
<!--                                                    id="addBtn">-->
<!--                                                <span class="layui-icon layui-icon-add-1"></span>调查小组-->
<!--                                            </button>-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                            </div>-->
                            <div class="layui-form-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs6">
                                        <label class="layui-form-label febs-form-item-require">期限时间：</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="surveyDeadline" id="surveyDeadline"
                                                   placeholder="请输入期限时间" autocomplete="off" class="layui-input"
                                                   lay-verify="required">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <label class="layui-form-label febs-form-item-require">调查备注：</label>
                                        <div class="layui-input-block">
                                    <textarea type="text" name="surveyRemark" autocomplete="off" class="layui-textarea"
                                              minlength="2"
                                              maxlength="500" placeholder="请输入备注" lay-verify="range"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!--                <div class="layui-form-item">-->
                <!--                    <div class="layui-row">-->
                <!--                        <div class="layui-col-xs6">-->
                <!--                            <label class="layui-form-label febs-form-item-require">调查人：</label>-->
                <!--                            <div class="layui-input-block" style="position: relative">-->
                <!--                                <input type="text" name="surveyUserId" class="febs-hide">-->
                <!--                                <input type="text" name="surveyRealName" autocomplete="off" class="layui-input" id="inputAutoSurveyUser"-->
                <!--                                       minlength="2" maxlength="10" placeholder="请选择调查人"  lay-verify="required">-->
                <!--                                <div class="layui-input-suffix" id="surveyUserSelect">-->
                <!--                                    <i class="layui-icon layui-icon-add-1"></i>-->
                <!--                                </div>-->
                <!--                            </div>-->
                <!--                        </div>-->
                <!--                    </div>-->
                <!--                </div>-->
                <!--                <div class="layui-form-item">-->
                <!--                    <div class="layui-row">-->
                <!--                        <div id="showSurveyUserInfo" class="febs-hide">-->
                <!--                            <div class="layui-col-xs4">-->
                <!--                                <label class="layui-form-label">调查部门：</label>-->
                <!--                                <div class="layui-input-block layui-input-block-detail">-->
                <!--                                    <input type="text" name="surveyDeptId" class="febs-hide">-->
                <!--                                    <input type="text" name="surveyDeptName" autocomplete="off" class="layui-input febs-hide"-->
                <!--                                           minlength="2" maxlength="10" disabled>-->
                <!--                                    <span id="surveyDeptNameDiv">-->
                <!--                                    </span>-->
                <!--                                </div>-->
                <!--                            </div>-->
                <!--                            <div class="layui-col-xs4">-->
                <!--                                <label class="layui-form-label">调查人账号：</label>-->
                <!--                                <div class="layui-input-block layui-input-block-detail">-->
                <!--                                    <input type="text" name="surveyUserName" autocomplete="off" class="layui-input febs-hide"-->
                <!--                                           minlength="2" maxlength="10" disabled>-->
                <!--                                    <span id="surveyUserNameDiv">-->
                <!--                                    </span>-->
                <!--                                </div>-->
                <!--                            </div>-->
                <!--                            <div class="layui-col-xs4">-->
                <!--                                <label class="layui-form-label">调查人工号：</label>-->
                <!--                                <div class="layui-input-block layui-input-block-detail">-->
                <!--                                    <input type="text" name="surveyUserNo" autocomplete="off" class="layui-input febs-hide"-->
                <!--                                           minlength="2" maxlength="10" disabled>-->
                <!--                                    <span id="surveyUserNoDiv">-->
                <!--                                    </span>-->
                <!--                                </div>-->
                <!--                            </div>-->
                <!--                        </div>-->
                <!--                    </div>-->
                <!--                </div>-->

            </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="reportSurveyAssign-edit-form-submit"
                        id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="group-user-option">
    <a lay-event="del" title="删除该组"><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
    <a lay-event="add" title="添加组员"><em class="layui-icon febs-edit-area febs-blue">&#xe654;</em></a>
</script>
<script data-th-inline="javascript">
    var accidentReportData = [[${accidentReport}]];
</script>
<script th:src="@{/febs/js/accidentReport/reportSurveyAssign.js(v=1)}"></script>